/* 
 * Enterprise Library Extensions - DI + ORM.
 * Copyright (C) 2006
 *
 * GNU General Public License
 *
 * This program is free software; you can redistribute 
 * it and/or modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 */
using System;

namespace ELE.EnterpriseLibrary.Naming
{
  /// <summary>
  /// This exception is used to notify errors initializing resources in the ONDI.
  /// It extends Service Provider Interface Exception and can be caused by errors initializing 
  /// context or objects created by the factories that implement the interfaces in the Spi namespace.
  /// 
  /// Author : Miguel Curi
  /// 
  /// </summary>
  [Serializable]
  public class ResourceInitializationException : SpiException
  {
    /// <summary>
    /// Empty constructor
    /// </summary>
    public ResourceInitializationException():base()
    {
    }
    /// <summary>
    /// Constructor with a message
    /// </summary>
    /// <param name="message">The message</param>
    public ResourceInitializationException(string message): base(message)
    {
    }
    /// <summary>
    /// Constructor with message and inner exception
    /// </summary>
    /// <param name="message">message</param>
    /// <param name="innerException">inner exception</param>
    public ResourceInitializationException(string message, Exception innerException):base(message, innerException)
    {
    }
  }
}